package com.tianji.learning.controller;

import com.tianji.learning.domain.vo.SignResultVO;
import org.springframework.web.bind.annotation.*;
import com.tianji.learning.service.ISignRecordService;
import com.tianji.learning.domain.entity.SignRecord;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 签到记录表 控制器
 * </p>
 *
 * @author author
 */
@Api(tags = "SignRecord管理")
@RestController
@RequiredArgsConstructor
@RequestMapping("/sign-records")
public class SignRecordController {

    private final ISignRecordService signRecordService;
    @PostMapping()
    public SignResultVO sign() {
        return signRecordService.sign();
    }
    @GetMapping
    public List<Integer> getSignRecords(){
        return signRecordService.getSignRecords();
    }

}
